
import mockRequest from "@/utils/mockRequest";

const state={
  echartData:{},
}
const actions={
  async getDate(context){
    const result=await mockRequest.get('/home/list');
    console.log(result);
    if(result.code==20000){
      context.commit('GETDATE',result.data);
    }
}

}
const mutations={
  GETDATE(state,data){
    state.echartData=data||{};
  }
}
const getters={}
export default {
  state,
  actions,
  mutations,
  getters
}
